<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>031-flex侧轴对齐方式</title>
		<style>
			.box {
				width: 600px;
				height: 800px;
				border: 1px solid red;
				display: flex;
				flex-wrap: wrap;

				/* 侧轴对齐方式(默认stretch，单行) */
				/* align-items: center; */

				/* 侧轴对齐方式(多行) */
				align-content: flex-start;
			}

			.inner {
				width: 200px;
				height: 200px;
				border: 1px solid black;
				box-sizing: border-box;
			}
		</style>
	</head>
	<body>
		<div class="box">
			<div class="inner">1</div>
			<div class="inner">2</div>
			<div class="inner">3</div>
			<div class="inner">4</div>
			<div class="inner">5</div>
			<div class="inner">6</div>
			<div class="inner">7</div>
			<div class="inner">8</div>
			<div class="inner">9</div>
		</div>
	</body>
</html>
